import type { LoginByAccountDto } from "../types/login-api";
import { instance } from "../utils/request";

const loginByAccount = (data: LoginByAccountDto): Promise<ResponseApiDto> => {
  return instance.post("/Login/SupplierLoginByAccount", data);
};

const checkLogin = (): Promise<ResponseApiDto> => {
  return instance.get("/Login/CheckSupplierLogin");
};

export default { loginByAccount, checkLogin };
